package org.testfire.translator.watij.assertions;

import org.testfire.model.assertions.AssertFail;
import org.testfire.model.TestsetType;
import org.testfire.translator.TestFireTranslator;

/**
 * Created by IntelliJ IDEA.
* User: granum
* Date: Sep 2, 2007
* Time: 5:49:04 PM
*
*/
public class AssertFailTranslator<T> implements TestFireTranslator<AssertFail>
{

public Object translate( TestsetType testset, AssertFail type )
{
    StringBuilder buf = new StringBuilder( );
    buf.append( String.format("fail( \"%1$s\")", type.getMessage() ) );
    return buf.toString();
}
}